package com.bookmall.entity;

import java.time.LocalDateTime;

public class Stock {
	
	private int stockId;
	private int bookId;
	private int bookNum;
	private LocalDateTime createTime;
	private LocalDateTime modifyTime;
	private boolean deleteFlag;
	
	public Stock() {
		super();
	}

	public Stock(int stockId, int bookId, int bookNum, LocalDateTime createTime, LocalDateTime modifyTime,
			boolean deleteFlag) {
		super();
		this.stockId = stockId;
		this.bookId = bookId;
		this.bookNum = bookNum;
		this.createTime = createTime;
		this.modifyTime = modifyTime;
		this.deleteFlag = deleteFlag;
	}

	public int getStockId() {
		return stockId;
	}

	public void setStockId(int stockId) {
		this.stockId = stockId;
	}

	public int getBookId() {
		return bookId;
	}

	public void setBookId(int bookId) {
		this.bookId = bookId;
	}

	public int getBookNum() {
		return bookNum;
	}

	public void setBookNum(int bookNum) {
		this.bookNum = bookNum;
	}

	public LocalDateTime getCreateTime() {
		return createTime;
	}

	public void setCreateTime(LocalDateTime createTime) {
		this.createTime = createTime;
	}

	public LocalDateTime getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(LocalDateTime modifyTime) {
		this.modifyTime = modifyTime;
	}

	public boolean isDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(boolean deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	@Override
	public String toString() {
		return "Stock [stockId=" + stockId + ", bookId=" + bookId + ", bookNum=" + bookNum + ", createTime="
				+ createTime + ", modifyTime=" + modifyTime + ", deleteFlag=" + deleteFlag + "]";
	}
}
